#!/usr/bin/env python
#-*- cofing:utf-8 -*-
urls = (
    '/',                                                        {'controller':'statics','action':'index'},
    '/(about|contact)',                                         {'controller':'statics','action':'{0}'},
    '/account/(sign_in|sign_up|sign_out)',                      {'controller':'account','action':'{0}'},
    '/sites',                                                   {'controller':'sites','action':'index'},
    '/site/new',                                                {'controller':'sites','action':'new'},
    '/site/(\d+)/(edit|update|traffic|cache|help|node|destory)',{'controller':'sites','action':'{1}','id':'{0}'},
    '/site/(\d+)/(\d+)/traffic',                                {'controller':'sites','action':'node_traffic','id':'{0}','nid':'{1}'},
    '/site/(\d+)',                                              {'controller':'sites','action':'show','id':'{0}'},
    '/users',                                                   {'controller':'users','action':'index'},
    '/user/new',                                                {'controller':'users','action':'new'},
    '/user/(\d+)/(edit|destory)',                               {'controller':'users','action':'{1}','id':'{0}'},
    '/user/(\d+)',                                              {'controller':'users','action':'show','id':'{0}'},
    '/nodes',                                                   {'controller':'nodes','action':'index'},
    '/node/(new|level|levels)',                                 {'controller':'nodes','action':'{0}'},
    '/node/(\d+)/(edit|destory|status)',                        {'controller':'nodes','action':'{1}','id':'{0}'},
    '/node/(\d+)',                                              {'controller':'nodes','action':'show','id':'{0}'},
    '/level/(\d+)',                                             {'controller':'nodes','action':'levelshow','id':'{0}'},
    '/level/(\d+)/edit',                                        {'controller':'nodes','action':'leveledit','id':'{0}'},
    '/level/(\d+)/destory',                                     {'controller':'nodes','action':'leveldestory','id':'{0}'}
)
